﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using QdpzWtm.Models;
using QdpzWtm.Models.BaseSeting;


namespace QdpzWtm.ViewModels.ArticleManagementVMs
{
    public partial class ArticleManagementSearcher : BaseSearcher
    {
        [Display(Name = "标题")]
        public String Title { get; set; }
        public List<ComboSelectListItem> AllArticleManagementTypes { get; set; }
        [Display(Name = "文章类型")]
        public int? ArticleManagementTypeId { get; set; }
        [Display(Name = "文章坐车")]
        public String Author { get; set; }
        [Display(Name = "发布时间")]
        public DateRange UpTime { get; set; }

        protected override void InitVM()
        {
            AllArticleManagementTypes = DC.Set<ArticleManagementType>().GetSelectListItems(Wtm, y => y.ArticleManagementTypeName);
        }

    }
}
